<template>
  <div>
    <h4>Hello - {{ count }}</h4>
  </div>
</template>

<script>
// 引入 自定义hook (组合式函数)
import { useCounter } from '@/hooks/counter.js'

export default {
  setup() {
    const { count, increment } = useCounter()

    return {
      count,
      increment
    }
  }
}
</script>